package pc29;

public class J14SetterGetter {
	
	private String name;
	private int kor;
	private int eng;
	private int mat;
	
	public J14SetterGetter(String name,int kor,int eng,int mat) {
		this.name=name;
		this.kor=kor;
		this.eng=eng;
		this.mat=mat;
		
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getKor() {
		return kor;
	}

	public void setKor(int kor) {
		this.kor = kor;
	}

	public int getEng() {
		return eng;
	}

	public void setEng(int eng) {
		this.eng = eng;
	}

	public int getMat() {
		return mat;
	}

	public void setMat(int mat) {
		this.mat = mat;
	}

	@Override
	public String toString() {
		
		
		String result="";
		setName(result);
		setKor(kor);
		setEng(eng);
		setMat(mat);
		result += "J14SetterGetter [name=" + name + ", kor=" + kor + ", eng="
				+ eng + ", mat=" + mat + ", getName()=" + getName()
				+ ", getKor()=" + getKor() + ", getEng()=" + getEng()
				+ ", getMat()=" + getMat() + "]";
		return result;
	}
	
	
	
	
	
	
	
	
}
